How to remove empty elements from an array in JavaScript

welcome to shbcf.ru